﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.Web.UI;

namespace Guru.Web.Controls.Telerik
{
    public class GuruComboBox : RadComboBox
    {
        public GuruComboBox()
            : base()
        {
            this.Skin = GuruConfigurations.GuruSkinName;
            this.EnableEmbeddedSkins = false;
        }
        public char ValueSeparator 
        {
            get 
            {
                if (ViewState["ValueSeparator"] == null)
                    return ';';
                else return (char)ViewState["ValueSeparator"];
            }
            set
            {
                ViewState["ValueSeparator"] = value;
            }
        }
        public string[] DataValueFields
        {
            get 
            {
                return this.DataValueField.Split(ValueSeparator);
            }
        }
    }
}
